package com.aishua.fire.common;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class DateUtils {
	
	public static final String YYYYMM ="yyyyMM";

	/**
	 * 获取当前时间后一天
	 * @param date
	 * @return
	 */
	 public static Date getNextDay(Date date) {
	        Calendar calendar = Calendar.getInstance();
	        calendar.setTime(date);
	        calendar.add(Calendar.DAY_OF_MONTH, +1);
	        date = calendar.getTime();
	        return date;
	    }
	 
	 /**
		 * 获取当前年月时间
		 * @return
		 */
		public static String getNowYYYYMMStr() {
			SimpleDateFormat simpleDateFormat = new SimpleDateFormat(YYYYMM);
			return simpleDateFormat.format(new Date());
		}
	 
}
